Returns the current position in an open file.
オープン済みファイルについて、現在のファイルポインタを返します。
Loc(FileNumber)
Loc(FileNumber)
Long
ロング整数
FileNumber: Any numeric expression that contains the file number that is set by the Open statement for the respective file.
FileNumber: 該当ファイルに対し Open ステートメントが割り当てたファイル番号を示す数値表式。
If the Loc function is used for an open random access file, it returns the number of the last record that was last read or written.
オープンしたランダムアクセスファイルに対して Loc 関数を使用すると、最後に読み取りないし書き込みの行われたレコード番号が返されます。
For a sequential file, the Loc function returns the position in a file divided by 128. For binary files, the position of the last read or written byte is returned.
順編成ファイルの場合、Loc 関数からは 128 で割ったファイル位置が返されます。バイナリファイルの場合は、最後に読み取りないし書き込みの行われたバイト位置が返されます。